package com.bishe.demo.modules.other.service;

import com.bishe.demo.modules.common.entity.ResultEntity;
import com.bishe.demo.modules.common.entity.SearchBean;
import com.bishe.demo.modules.other.entity.Image;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ImageService {
    ResultEntity<Image> insertImage(Image image);

    ResultEntity<Image> deleteImageByImageId(int imageId);

    Image getImageByImageId(int imageId);

    List<Image> getImagesBySceneryId(int sceneryId);

    List<Image> getImageByTravelId(int travelId);

    PageInfo<Image> getImagesBySearchBean(SearchBean searchBean);
}
